var fs = require('fs');
var path = require('path');

var cwd = process.cwd();
var debug = process.env && process.env.NODE_ENV === 'development';

module.exports = {
  debug: debug,
  // 命中 loader 的url路径
  urlRoot: '/client',
  // loader 扫描的文件目录
  staticRoot: path.join(cwd, 'client'),
  viewsRoot: path.join(cwd, 'service/view'),
  // 对外服务端口
  httpPort: 8000,
  uploadExt: [".png", ".jpg", ".jpeg", ".gif", ".bmp", '.webp'], // 上传文件后缀
  uploadMaxBuffer: 5*1024*1024,  // 上传图片最大size
  evaluateAPI: 'http://47.96.2.46:8802',
  userAPI: 'http://47.96.2.46:8000'
}
